<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="resources/css/style.css" type="text/css"/>

<style type="text/css">
#userModifyT {
	border: 1px solid #555555;
}
#userModifyT td {
	border: 1px solid #dddddd;
}
.sideTitle {
	font-size: 16pt;
	color: #999999;
	text-align:center;
	background: #eeeeee;
}
</style>

<script src="resources/js/jquery-1.9.1.js"></script>
<script type="text/javascript">
$(function() {
	$("td.sideTitle").attr("rowspan", "100%");
	
	if($("#userSex").val() == "man") {
		$("input[value=man]").attr("checked", true);
	} else {
		$("input[value=woman]").attr("checked", true);
	}
	
	if($("#userMarry").val() == "true") {
		$("input[value=true]").attr("checked", true);
	} else {
		$("input[value=false]").attr("checked", true);
	}
});
</script>

<title>꽁알 : Administrator</title>

</head>
<body>

<h2 style="color:#666666;">회원 정보 변경 - ID : ${user.id }</h2>
<form action="userSearch_modify.ga" method="post" autocomplete="off">

<input type="hidden" name="id" value="${user.id }"/>

<table id="userModifyT" cellpadding="7" cellspacing="0" width="100%">
	<tr>
		<td class="sideTitle">회<br/>원<br/>정<br/>보</td>
		<td>회원가입일</td>
		<td>${user.regdate }</td>
	</tr>
	<tr>
		<td>핸드폰 기종</td>
		<td>${user.pname }</td>
	</tr>
	<tr>
		<td>전화번호</td>
		<td>${user.pnum }</td>
	</tr>
	<tr>
		<td>추천인 ID</td>
		<td>${user.recommend }</td>
	</tr>
	<tr>
		<td>꽁</td>
		<td>${user.ggong }</td>
	</tr>
	<tr>
		<td>꽁돈</td>
		<td>${user.ggongdon }</td>
	</tr>
	<tr>
		<td>E-Mail</td>
		<td><input type="text" name="email" value="${user.email }" style="width:300px;"/></td>
	</tr>
	<tr>
		<td>성별</td>
		<td>
			<input type="hidden" id="userSex" value="${user.sex }"/>
			<input type="radio" name="sex" value="man"/> 남 &nbsp;
			<input type="radio" name="sex" value="woman"/> 여
		</td>
	</tr>
	<tr>
		<td>생년월일</td>
		<td>
			<input type="text" name="birth_y" value="${user.birth_y }" style="width:80px;"/>년 &nbsp;
			<input type="text" name="birth_m" value="${user.birth_m }" style="width:80px;"/>월 &nbsp;
			<input type="text" name="birth_d" value="${user.birth_d }" style="width:80px;"/>일
		</td>
	</tr>
	<tr>
		<td>결혼유무</td>
		<td>
			<input type="hidden" name="userMarry" value="${user.marry }"/>
			<input type="radio" name="marry" value="true"/> 기혼 &nbsp;
			<input type="radio" name="marry" value="false"/> 미혼
		</td>
	</tr>
	<tr>
		<td>우편번호</td>
		<td>
			<input type="text" name="zip" value="${user.zip }" style="width:80px;background:#eeeeee;" readonly/>
			<input type="button" value="우편번호 검색" onclick="window.open('zipPopup.ga', 'zip', 'width=500,height=500')"/>
		</td>
	</tr>
	<tr>
		<td>주소</td>
		<td>
			<input type="text" name="address_1" value="${user.address_1 }" style="width:300px;background:#eeeeee;" readonly/>
		</td>
	</tr>
	<tr>
		<td>상세 주소</td>
		<td>
			<input type="text" name="address_2" value="${user.address_2 }" style="width:300px;"/>
		</td>
	</tr>
</table>
<br/><br/>

<div style="width:100%;text-align:center;">
	<input type="submit" value="변경" style="width:80px;height:30px;"/>
	<input type="button" value="취소" onclick="self.close()" style="width:80px;height:30px;"/>
</div>
</form>

</body>
</html>